package com.ecut.drug_bid.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class BidCreateRequest {
    @NotBlank(message = "招标项目编号不能为空")
    private String tenderCode;

    @NotBlank(message = "投标单位不能为空")
    private String bidderOrg;

    @NotBlank(message = "法人姓名不能为空")
    private String legalName;

    private String contactPhone;

    private String productBatch;

    private LocalDate mfgDate;

    private LocalDate expiryDate;

    @NotNull(message = "投标总金额不能为空")
    @Positive(message = "投标总金额必须大于0")
    private BigDecimal totalAmount;

    private LocalDateTime depositPaidAt;
}